class Ape{
    String s;
    Ape(String s){
        this.s=s;
    }
    public void speak(){
        System.out.println("yiyayiya");
    }
}
class People extends Ape{
    People(){
        super("");
    }
    public void speak(){
        System.out.println("I am People");
    }
    public void think(){
        System.out.println("I am thinking");
    }
}

class Shape{
    double length,area;
    double getLength(){
        return length;
    }
}
class Triangle extends Shape{
    double a,b,c;
    Triangle(double a,double b,double c){
        this.a=a;
        this.b=b;
        this.c=c;
    }
    double getLength(){
        return a+b+c;
    }
}

class A{
    int a;
    A(int a){
        this.a=a;
    }
    void get(){
        System.out.println(a);
    }
}
class B extends A{
    int b;
    B(int b,int a){
        super(a);
        this.b=b;
    }
    void get(){
        System.out.println("a="+a+" b="+b);
    }
}
public class E {
    public static void main(String[] args) {
        System.out.println("haha");
    }
//    public static void main(String[] args) {
//        A a=new B(1,2);
//        a.get();
//        System.out.println(a.a);
//    }
//    public static void main(String[] args) {
//        Triangle t=new Triangle(1,2,3);
//        Shape s=t;
//        double tmp=s.getLength();
//        System.out.println(tmp);
//    }
//    public static void speak(Ape a){
//        a.speak();
//    }
//    public static void main(String[] args) {
//        People p=new People();
//        p.speak();
//        p.think();
//        Ape a=p;
//        a.speak();
//        p=(People) a;
//        p.speak();
//        Ape x=new Ape("");
//        x.speak();
//        speak(p);
//        speak(x);
//    }
}
